package com.xyzm.springcloud.springprovider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class IndexController {
    @Value("${author.name}")
    String authorName;

    @RequestMapping("/hello")
    public String hello() {
        return "Hello,I am provider,this author is " + authorName;
    }
}
